package com.example.mybatis.sqlserver.springbootmybatissqlserver.pojo.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by hzy on 2019/2/19.
 *
 * sample:
 *
 * {
 *   "CategoryId": "sample string 1",
 *   "CategoryName": "sample string 2",
 *   "OnlyCode": "sample string 3",
 *   "SortIndex": "sample string 4",
 *   "IsShow": "sample string 5"
 * }
 */

public class EditCategoryDTO {

    /**
     * 类目id
     */
    @JsonProperty("CategoryId")
    public String categoryId;

    @NotNull
    @NotBlank
    @JsonProperty("CategoryName")
    public String categoryName;

    @NotNull
    @NotBlank
    @JsonProperty("SortIndex")
    public String sortIndex;

    /**
     * 例如: 10, 1010 , 112710w
     */
    @NotNull
    @NotBlank
    @JsonProperty("OnlyCode")
    public String onlyCode;

    @NotNull
    @JsonProperty("IsShow")
    public Boolean isShow;
}
